package com.guo.hui.web;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;

import com.guo.hui.dao.blog.TpArticleMapper;
import com.guo.hui.dao.blog.TpTimelineMapper;
import com.guo.hui.dao.shiro.TpPermissionMapper;
import com.guo.hui.dao.shiro.TpRoleMapper;
import com.guo.hui.dao.shiro.TpUserMapper;
import com.guo.hui.model.blog.TpArticle;
import com.guo.hui.model.blog.TpTimeline;
import com.guo.hui.model.shiro.TpUser;
import com.guo.hui.service.TimeLineService;

@ContextConfiguration(locations = { "classpath:spring-mybatis.xml", "classpath:spring-service.xml",
		"classpath:spring-ehcache.xml", "classpath:ehcache.xml" })
public class UnitCache extends AbstractJUnit4SpringContextTests {
	@Autowired
	private TpArticleMapper timeLineDao;

	@Test
	public void test1() {
		System.out.println(12);

	}

	@Test
	public void test() {

		// for (int k = 0; k < 5; k++) {
		// Date dd = new Date();
		// Map<String, Object> map = new HashMap<String, Object>();
		// map.put("id", 5);
		// for (int i = 0; i < 15; i++) {
		// timeLineDao.selectByMap(map);
		// }
		// Date dd1 = new Date();
		// long tt = dd1.getTime() - dd.getTime();
		// System.out.println(tt);
		// }

	}

}
